﻿@inherits BaseComponent

@if (plugins != null && plugins.Count > 0)
{
    foreach (var item in plugins)
    {
        <UPluginItem Item="item" />
    }
}

@code {
    private IPluginService Service;
    private List<CmPlugin> plugins;

    protected override async Task OnInitAsync()
    {
        await base.OnInitAsync();
        Service = await CreateServiceAsync<IPluginService>();
        plugins = await Service.GetRecommendPluginsAsync();
    }
}